import request from '@/utils/request.ts'
import {
  loginFormData,
  loginResponseData,
  userInfoReponseData,
} from '@/api/user/type.ts'
// 登录请求
export const reqLogin = (data: loginFormData) =>
  request.post<any, loginResponseData>('/admin/acl/index/login', data)
// 获取用户信息
export const reqUserInfo = () =>
  request.get<any, userInfoReponseData>('/admin/acl/index/info')
//退出登录
export const outLogin = () => request.post<any, any>('/admin/acl/index/logout')
